import App from './App.vue'
import router from './router'
import store from './store/index'
import './stylus/theme.styl'
import './stylus/markdown.styl'

// import Vue from 'vue'
if (Vue === undefined) {
  var Vue = window.Vue;
}

// Element UI
// import 'element-ui/lib/theme-chalk/index.css'
// import ElementUI from 'element-ui'
// Vue.use(ElementUI)

import RemixIcon from '@tools/RemixIcon.vue'
Vue.component('ri', RemixIcon)

import VSep from '@tools/VerticleSeparator.vue';
Vue.component("vsep", VSep);

import Scroller from '@/components/tools/Scroller.vue';
Vue.component("scroller", Scroller);

import Constants from '@js/constants.js';
Vue.prototype.$C = Constants;

// axios
import axios from 'axios'

import i18n from './i18n'
axios.defaults.headers.post['Countent-Type'] = 'application/json'
Vue.prototype.$axios = axios

// Initialization
Vue.config.productionTip = false

// Mixins
import mixins from '@js/mixins.js'
Vue.mixin(mixins)

// Mavon Editor
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
// use
Vue.use(mavonEditor)

// Calender Heatmap
// import VueCalendarHeatmap from 'vue-calendar-heatmap'
// Vue.use(VueCalendarHeatmap)

// Initialization
new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')
